<script>
export default {
	globalData: {
		langset: {},
		width: 375,
		height: 500,
		statusBarHeight: 36,
		vuex_uid: 0,
		vuex_access_token: '',
		vuex_userinfo: {}
	},
	onLaunch: function() {
		let langset = {
			value: 'zh-CN',
			label: '中文'
		};
		this.globalData.langset = langset;
		plus.storage.setItem('langset', JSON.stringify(langset));
		// #ifdef APP-NVUE
		plus.screen.lockOrientation('portrait-primary');
		// #endif

		let s = uni.getSystemInfoSync();
		this.globalData.width = s.screenWidth;
		this.globalData.height = s.screenHeight;
		this.globalData.statusBarHeight = s.statusBarHeight;
		uni.setStorage({
			key: 'screenW',
			data: s.screenWidth
		});
		uni.setStorage({
			key: 'screenH',
			data: s.screenHeight
		});
		uni.setStorage({
			key: 'statusBarHeight',
			data: s.statusBarHeight
		});
	},
	onShow: function() {},
	onHide: function() {}
};
</script>
